package com.pactera.demo.base.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * <p>
 *
 * </p>
 *
 * @author chang.zhou
 * @version version
 * @date Created in 2020/2/27 17:09
 */
@Data
public class UserDto {

    @NotEmpty(message = "名称为空")
    @Length(min = 2,max = 8)
    private String name;

    @NotEmpty(message = "")
    @Length(min = 2,max = 8,message = "登录名为空")
    private String loginName;

    @Length(min = 10,max = 20,message = "身分证号为空")
    private String idNum;

    private String deptId;
}
